<template>
  <div class="dashboard-container">
    <component :is="currentRole"></component>
  </div>
</template>

<script>
import { mapGetters } from 'vuex'
import adminDashboard from './admin'
import editorDashboard from './editor'
import ltsDashboard from './lts'

export default {
  name: 'dashboard',
  components: { adminDashboard, editorDashboard, ltsDashboard },
  data() {
    return {
      currentRole: 'adminDashboard'
    }
  },
  computed: {
    siteId () {
      return this.$store.state.site.siteId
    }
  },
  created() {
    if (this.siteId === 123530) {
      this.currentRole = 'ltsDashboard'
    } 
  }
}
</script>
